﻿<%@ Page Title="Entrar" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="LuckyLoot.Presentation.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Entrar
    </h2>
    <p>
        Informe seu nome de usuário e senha.
        
    </p>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup"/>
                <fieldset>
                    <legend>Entrar</legend>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Nome de usuário*</asp:Label><br />
                        <asp:TextBox ID="UserName" runat="server" CssClass="k-textbox" Width="350" required></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Senha*</asp:Label><br />
                        <asp:TextBox ID="Password" runat="server"  TextMode="Password" CssClass="k-textbox" Width="350" required></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    <br /><br />
                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Entrar" CssClass="k-button" ValidationGroup="LoginUserValidationGroup"/>
                    </p>
                    <br /><br />
                </fieldset>
                
        </LayoutTemplate>
    </asp:Login>
</asp:Content>
